package com.gitee.base;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

/**
 * CPU参数
 *  
 * @author  赵炎
 * @version  [V1.00, 2017年11月9日]
 * @see  [相关类/方法]
 * @since V1.00
 */
public class CpuParam implements Serializable
{
    
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -1670665325890959513L;
    
    private int availableProcessors;
    
    private long totalMemory;
    
    private long freeMemory;
    
    private long maxMemory;
    
    public int getAvailableProcessors()
    {
        return availableProcessors;
    }
    
    public void setAvailableProcessors(int availableProcessors)
    {
        this.availableProcessors = availableProcessors;
    }
    
    public long getTotalMemory()
    {
        return totalMemory;
    }
    
    public void setTotalMemory(long totalMemory)
    {
        this.totalMemory = totalMemory;
    }
    
    public long getFreeMemory()
    {
        return freeMemory;
    }
    
    public void setFreeMemory(long freeMemory)
    {
        this.freeMemory = freeMemory;
    }
    
    public long getMaxMemory()
    {
        return maxMemory;
    }
    
    public void setMaxMemory(long maxMemory)
    {
        this.maxMemory = maxMemory;
    }
    
    @Override
    public String toString()
    {
        return JSON.toJSONString(this);
    }
}
